﻿using System.Collections.Concurrent;
using KinonekoSoftware.JuXiaoYouDB.Core;
using ObjectWeakRef = System.WeakReference<object>;
using ConcurrentWeakRefObjectDictionary = System.Collections.Concurrent.ConcurrentDictionary<string, System.WeakReference<object>>;

namespace KinonekoSoftware.Studio
{
    partial class Platform
    {
        private static readonly DisposableCollection                     DisposableCollection         = new DisposableCollection();
        internal static readonly ObservableCollection<IDispoableDatabase> ObservableDatabaseCollection = new ObservableCollection<IDispoableDatabase>();
        
        public static readonly ConcurrentWeakRefObjectDictionary Cache                = new ConcurrentWeakRefObjectDictionary();
        public static readonly ConcurrentWeakRefObjectDictionary ThumbnailCache       = new ConcurrentWeakRefObjectDictionary();

        public static HashSet<string> Keywords;

    }
}